package com.ant.storage.mapper;

import com.ant.storage.pojo.OtherEnter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OtherEnterMapper extends BaseMapper<OtherEnter> {

    /**
     * 其他入库单中间表插入
     * @param other_enter_id 其他入库单id
     * @param commodityId 商品id
     * @param id 仓库id
     * @param other_enter_number 入库数量
     */
    void addOtherEnter(Integer other_enter_id, Integer commodityId, Integer id, Integer other_enter_number);

    /**
     * 入库单查询
     * @param page
     * @param limit
     * @param map
     * @return
     */
    List<OtherEnter> queryOtherEnter(Integer page, Integer limit,@Param(value = "map") Map map);

    /**
     * 入库单统计
     * @param map
     * @return
     */
    Integer countOtherEnter(@Param(value = "map")Map map);
}
